/*
 * @Author: pengfei
 */

 import OldHeader from './oldHeader';
 import NormalHeader from './nomalHeader';

 import XcjhHeader from './XcjhHeader';

 import DealRuest from '../interface/dealRequest.interface'

export default function(path:string):DealRuest{
    console.log(path)
    //路径中含有xcjh，走兴才解析头,原本为dkfw
    if(path.indexOf('/mbars/')!==-1){
        return new XcjhHeader('h5','xs','1.0');
    } else {//原有解析头
        return new NormalHeader();
    }
}